﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;

/**
 云星辰 药监器械 使用
 需要预查询单据数据在查询单据明细
 */

namespace GnpFine.Application.NmpaSystem
{

    /// <summary>
    /// 出库单预查询
    /// </summary>
    public class KDInstrumentInv
    {
        public string materialid_number { get; set; }
        public string materialid_name { get; set; }
        public string batchno { get; set; }
        public string materialid_model { get; set; }
        public DateTime validdate { get; set; }
        [Column(TypeName = "decimal(23,10)")]
        public decimal qty { get; set; }


    }




    /// <summary>
    /// 出库单预查询
    /// </summary>
    public class KDPreInstrumentPur
    {
        [JsonProperty("id")]
        public string kdid { get; set; }
        public string billno { get; set; }
        public string supplierid_name { get; set; }
        public string supplierid_number { get; set; }

    }


    public class KDInstrumentPur
    {
        /// <summary>
        /// 
        /// </summary>
        public string billno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime billdate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<KDInstrumentPurEntity> material_entity { get; set; }
        /// <summary>
        /// 哈密市宝石花吐哈医院
        /// </summary>
        public string supplierid_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string supplierid_id { get; set; }
    }

    public class KDInstrumentPurEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public string materialid_number { get; set; }
        /// <summary>
        /// 新型冠状病毒核酸（2019-nCoV）RNA质控品
        /// </summary>
        public string materialid_name { get; set; }
        /// <summary>
        /// 注册号
        /// </summary>
        public string materialid_refistrationnumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string batchno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime validdate { get; set; }
        /// <summary>
        /// 北京金豪制药股份有限公司
        /// </summary>
        public string custom_entity_field__6__22ghpxiehohfly__materialid__custom_field__4__22dyhvyxiew4bixieq { get; set; }
        /// <summary>
        /// 0.5ml*10/盒
        /// </summary>
        public string materialid_model { get; set; }
        /// <summary>
        /// 盒
        /// </summary>
        public string unit_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column(TypeName = "decimal(23,10)")]
        public decimal qty { get; set; }
    }

    /// <summary>
    /// 出库单预查询
    /// </summary>
    public class KDPreInstrumentSale
    {
        [JsonProperty("id")]
        public string kdid { get; set; }
        public string billno { get; set; }
        public string customerid_name { get; set; }
        public string customerid_number { get; set; }

    }

    public class KDInstrumentSale
    {
        /// <summary>
        /// 
        /// </summary>
        public string billno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime billdate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<KDInstrumentSaleEntity> material_entity { get; set; }
        /// <summary>
        /// 哈密市宝石花吐哈医院
        /// </summary>
        public string customerid_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string customerid_id { get; set; }
    }

    public class KDInstrumentSaleEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public string materialid_number { get; set; }
        /// <summary>
        /// 新型冠状病毒核酸（2019-nCoV）RNA质控品
        /// </summary>
        public string materialid_name { get; set; }
        /// <summary>
        /// 注册号
        /// </summary>
        public string custom_entity_field__6__22guspuvyz94__materialid__refistrationnumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string batchno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime validdate { get; set; }
        /// <summary>
        /// 北京金豪制药股份有限公司
        /// </summary>
        public string custom_entity_field__6__22dyhzdxn4aubl__materialid__custom_field__4__22dyhvyxiew4bixieq { get; set; }
        /// <summary>
        /// 0.5ml*10/盒
        /// </summary>
        public string materialid_model { get; set; }
        /// <summary>
        /// 盒
        /// </summary>
        public string unit_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column(TypeName = "decimal(23,10)")]
        public decimal qty { get; set; }
    }

}